package com.neusoft.neuiotms.dcom.model.alter;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Table;
import javax.validation.constraints.NotBlank;

import org.hibernate.validator.constraints.Length;

import com.neusoft.bizcore.web.jpa.model.AbstractAuditModel;
import com.neusoft.bizcore.web.jpa.model.Comment;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

@Getter
@Setter
@ToString
@Entity
@org.hibernate.annotations.Table(appliesTo = "neuiot_alter_second_leader", comment = "二线组长指定处理表")
@Table(name = "neuiot_alter_second_leader")
public class AlterSecondLeader extends AbstractAuditModel {

    private static final long serialVersionUID = 1L;

    /** 工作流TaskId */
    @Length(max = 255, message = "工作流TaskId不能超过{max}位")
    @Column(length = 255, nullable = false)
    @Comment("varchar(255) NOT NULL COMMENT '工作流TaskId'")
    private String taskId;

    /** 工单号 */
    @Length(max = 50, message = "工单号不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '工单号'")
    private String workNum;

    /** 操作人编码 */
    @NotBlank(message = "操作人编码不能为空")
    @Length(max = 50, message = "操作人编码不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '操作人编码'")
    private String operatorCode;

    /** 操作人名称 */
    @NotBlank(message = "操作人名称不能为空")
    @Length(max = 50, message = "操作人名称不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '操作人名称'")
    private String operatorName;

    /** 二线组长编码 */
    @Length(max = 50, message = "二线组长编码不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '二线组长编码'")
    private String secondOperatorCode;

    /** 二线组长名称 */
    @Length(max = 50, message = "二线组长名称不能超过{max}位")
    @Column(length = 50, nullable = false)
    @Comment("varchar(50) NOT NULL COMMENT '二线组长名称'")
    private String secondOperatorName;

}
